package exam;

/**
 * Tests the answer to the first conditional question.
 * The text of the question is as follows:
 * "Write a method that returns the parameter number. However, for multiples of three print "Fizz"
 *  instead of the number and for multiples of five print "Buzz". For numbers which are multiples 
 *  of both three and five print "FizzBuzz"."
 * 
 * @author Branden Ogata
 *
 */

public class TestConditionalA00 extends Tester
{
  public static void main(String[] args)
  {
    final double points = getPoints(args);
    
    ConditionalA00 question = new ConditionalA00();
    System.out.println(test(Category.EQUALS, "fizzbuzz(0):", "FizzBuzz", 
                            question.fizzbuzz(0), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(1):", "1", 
                            question.fizzbuzz(1), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(2):", "2", 
                            question.fizzbuzz(2), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(3):", "Fizz", 
                            question.fizzbuzz(3), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(5):", "Buzz", 
                            question.fizzbuzz(5), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(10):", "Buzz", 
                            question.fizzbuzz(10), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(12):", "Fizz", 
                            question.fizzbuzz(12), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(15):", "FizzBuzz", 
                            question.fizzbuzz(15), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(16):", "16", 
                            question.fizzbuzz(16), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(-3):", "Fizz", 
                            question.fizzbuzz(-3), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(-5):", "Buzz", 
                            question.fizzbuzz(-5), percentageToPoints(TWELFTH, points)));
    System.out.println(test(Category.EQUALS, "fizzbuzz(-15):", "FizzBuzz", 
                            question.fizzbuzz(-15), percentageToPoints(TWELFTH, points)));

    System.out.format("[%.2f/%.2f]%n", getTotalPoints(), points);
  }
}
